/**
 * 
 */
package com.tw.trips.domain;

import org.springframework.data.neo4j.annotation.Fetch;
import org.springframework.data.neo4j.annotation.GraphId;
import org.springframework.data.neo4j.annotation.NodeEntity;
import org.springframework.data.neo4j.annotation.RelatedTo;

/**
 * @author m1005264
 * 
 */
@NodeEntity
public class Alert {

	@GraphId
	private Long nodeID;

	@RelatedTo(type = "ALERT", elementClass = Traveller.class)
	@Fetch
	private Traveller toBeAlerted;

	private String trainName;

	private String stationName;

	private String scheduledArrival;

	public Alert(Traveller toBeAlerted, String trainName, String stationName,
			String scheduledArrival, String delayInArrival,
			String expectedArrival, String html) {
		this.toBeAlerted = toBeAlerted;
		this.trainName = trainName;
		this.stationName = stationName;
		this.scheduledArrival = scheduledArrival;
		this.delayInArrival = delayInArrival;
		this.expectedArrival = expectedArrival;
		this.html = html;
	}

	public Alert() {
		super();
	}

	private String delayInArrival;

	private String expectedArrival;

	private String html;

	public String getTrainName() {
		return trainName;
	}

	public void setTrainName(String trainName) {
		this.trainName = trainName;
	}

	public String getStationName() {
		return stationName;
	}

	public void setStationName(String stationName) {
		this.stationName = stationName;
	}

	public String getScheduledArrival() {
		return scheduledArrival;
	}

	public void setScheduledArrival(String scheduledArrival) {
		this.scheduledArrival = scheduledArrival;
	}

	public String getDelayInArrival() {
		return delayInArrival;
	}

	public void setDelayInArrival(String delayInArrival) {
		this.delayInArrival = delayInArrival;
	}

	public String getExpectedArrival() {
		return expectedArrival;
	}

	public void setExpectedArrival(String expectedArrival) {
		this.expectedArrival = expectedArrival;
	}

	public String getHtml() {
		return html;
	}

	public void setHtml(String html) {
		this.html = html;
	}

	/**
	 * @return the nodeID
	 */
	public Long getNodeID() {
		return nodeID;
	}

	/**
	 * @return the toBeAlerted
	 */
	public Traveller getToBeAlerted() {
		return toBeAlerted;
	}

	/**
	 * @param toBeAlerted
	 *            the toBeAlerted to set
	 */
	public void setToBeAlerted(Traveller toBeAlerted) {
		this.toBeAlerted = toBeAlerted;
	}

}
